package nnet2.net;

public class SizeMismatchException extends RuntimeException { 
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 8538748048977562677L;

	public SizeMismatchException(int expected, int actual ) {
		super(String.format("Expected: %d got %d",expected,actual));
	}
	public SizeMismatchException(float [] expected, float [] actual) {
		super(String.format("Expected: %d got %d",expected.length,actual.length));
	}

	public SizeMismatchException(float[][] changes, float[][] ch) {
		super(String.format("Expected: [%d][%d] got [%d][%d]",changes.length,changes[0].length,ch.length,ch[0].length));
	}	
	
}
